Skip to content

build(ui_generation_agentic): bump flagged npm deps (same-major) - #6812

Draft
kajalj22 wants to merge 5 commits into
mainfrom
kajalj/bump-ui-npm-minor
Draft

kajalj22 wants to merge 5 commits into
mainfrom
kajalj/bump-ui-npm-minor

Conversation

@kajalj22

@kajalj22 kajalj22 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What / why

Security bump of the npm packages the dependency scanner flagged in the two generated-UI stack images (resources_servers/ui_generation_agentic/docker/ui-vite, ui-next). Same-major bumps only; the major ones (jspdf, faker, swiper) follow in a stacked PR.

  • ui-vite: vite 7.0.8 → 7.3.8 (also moves esbuild to 0.28.2), react-router-dom 7.7.1 → 7.18.7, react/react-dom 19.1.9 → 19.3.1 (+ matching @types), lodash 4.17.23 → 4.18.1.
  • ui-next: next 15.4.11 → 15.5.29, axios 1.11.0 → 1.21.1, react/react-dom 19.1.9 → 19.3.1 (+ matching @types), lodash 4.17.23 → 4.18.1, mathjs 14.6.0 → 14.9.1. next 15.5.29 itself hoists sharp 0.35.5; the two ^0.33 copies colorthief and ndarray-pixels still want are moved in the stacked major-bump PR, since that crosses their declared range.
  • Both package-lock.json files regenerated from the updated manifests. New docker/regen_locks.sh does this for both stacks (extracts the heredoc, resolves with npm install --package-lock-only --legacy-peer-deps, fails if the lock root stops mirroring the manifest); the Dockerfile comments point at it. A new unit test (tests/unit_tests/tooling/test_ui_generation_locks.py) asserts in CI that each lock's root and hoisted versions mirror its Dockerfile manifest, so manifest edits without a lock regen fail before the image build.

Validation

  • Lock root dependencies equal the Dockerfile package.json heredoc for both stacks
  • npm ci --legacy-peer-deps --ignore-scripts succeeds against the heredoc manifest + new lock for both stacks (ui-vite 505, ui-next 723 top-level entries)
  • regen_locks.sh is idempotent: rerunning it on the committed locks produces no diff
  • Resolved versions checked in both locks (react 19.3.1, vite 7.3.8, next 15.5.29, axios 1.21.1, sharp 0.35.5 under next, 0.33.5 nested under colorthief / ndarray-pixels)
  • docker/build_images.sh rebuild of ui-vite and ui-next images (no Docker daemon available locally; images are not built in PR CI)

Rollout

The stack images are built and pushed by resources_servers/ui_generation_agentic/docker/build_images.sh; rebuild and republish them after merge so the running environment picks up the new trees.

🤖 Generated with Claude Code

…t (same-major)

vite 7.3.8, react-router-dom 7.18.7, react 19.3.1, next 15.5.29, axios 1.21.1,
lodash 4.18.1, mathjs 14.9.1; sharp pinned to 0.35.5 via overrides. Lockfiles
regenerated from the Dockerfile manifests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 9a05c64

@copy-pr-bot

copy-pr-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review

…ajor bump

Moves to the stacked major-bump PR: colorthief and ndarray-pixels declare
^0.33, so forcing 0.35.5 is a breaking-range jump for them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test c9291cf

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM, no concerns found. I reviewed all four changed files, the dependency graphs, and the connected build and verifier paths. Both stack reviewers found no introduced defects.

Validation

Local probes used 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:6aa1fd6a59e9647f1d2698d266eb20c302cbc40a, a successful default-branch CI image because this head has no CI image, with Node 22.20.0 installed in a scratch virtual environment.

  • Both Dockerfile manifests match their lock roots. Exact npm ci --legacy-peer-deps installs passed. Dependency resolution checks found no missing dependencies or newly incompatible peers.
  • Vite passed the extracted sample runner with strict type checking and a production build. Its built bundle passed mocked-DOM state and Router navigation probes. Dev-server transformation, preview routing and malformed-JSX rejection behaved as expected.
  • Next passed a production build, HTTP/chunk serving and mocked-DOM hydration with a state-changing interaction. Native sharp consumers, Next image optimization, axios, mathjs and lodash probes passed.
  • The verifier script, with only its template path relocated to scratch, built valid samples and rejected external-file imports for both stacks: four expected results.

On the admitted head, I relied on successful Lint check, both component-lock checks, Unit tests / Test, changed-server tests, combined core coverage and Nemo_CICD_Test. Full server-suite shards were skipped, not passed. Autobot PR risk #6812 failed with risk:unknown: grading failed; that check did not identify a code defect.

Limits

The Next build skips type validation and linting by its existing configuration. A separate animation-prop type probe failed identically with head and base React typings; the focused probe without those props passed. I found no demonstrated type regression from this change.

I did not build the complete Docker images or run real-browser visual checks or sandbox model rollouts. These probes do not validate the final image permissions or optional harness stages. The images still need the documented rebuild and republish after merge.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

Extracts the package.json heredoc from docker/<stack>.Dockerfile, resolves the
tree with npm and fails if the lock root stops mirroring the manifest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 49f2b1f

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:high Autobot PR risk: high support User questions, support, or maintenance requests area:build Packaging, dependencies, containers, and releases labels Nov 27, 2026
…ckerfile manifests

Also SPDX header and temp-dir cleanup trap for regen_locks.sh.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 0773777

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

I reviewed all six changed files and the connected build and verifier paths with three delegated reviewers. I found no BLOCKER or RISK. One optional NOTE would strengthen the new override check; neither committed lock has the stale nested dependency described there. The previous review had no findings to recheck.

Validation

Probes used 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:6aa1fd6a59e9647f1d2698d266eb20c302cbc40a, a successful default-branch CI image because this head has no CI image, with Node 22.20.0 and npm 10.9.3.

  • Nine shell-helper probes passed, covering stack selection, manifest extraction, npm failure, root mismatch and cleanup.
  • Sixteen mutation probes exercised the actual new test function. Manifest, root-map, direct-version and hoisted-override drift were rejected. A stale nested override escaped, supporting the NOTE.
  • Real offline regeneration succeeded for both stacks. My strict byte-idempotence assertion failed because npm 10.9.3 removed only libc metadata from 44 optional Next entries. Versions, integrity hashes and dependency declarations stayed unchanged. Vite was unchanged, and the second run was byte-stable for both.
  • I reused the earlier successful npm installs, Next/Vite builds, mocked-DOM interactions and verifier acceptance/rejection probes after confirming that their executable inputs and locks still match this head.

On 0773777, I relied on successful Lint check, both component-lock checks, all four core shards, all eight server shards, combined coverage, Unit tests / Test, Unit tests / Server suite and Nemo_CICD_Test. CI logs explicitly show both new lock-test cases passed. Changed-server tests, session-routing end-to-end and Build Gym container were skipped, not passed.

Limits

The existing Next template skips type validation and lint. The earlier motion-prop type probe failed with both head and base React typings; the focused probe without those props passed. The npm dry-run comparison for the synthetic nested mutation was inconclusive because its cache lacked a package.

I did not build the complete UI Docker images or run real-browser visual checks or model rollouts. The documented image rebuild and republish are still needed for rollout.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

resolved = {name: lock["packages"][f"node_modules/{name}"]["version"] for name in manifest["dependencies"]}
assert resolved == manifest["dependencies"]
for name, version in manifest.get("overrides", {}).items():
assert lock["packages"][f"node_modules/{name}"]["version"] == version, f"override {name} not applied"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE, optional: Could this check inspect nested copies of each flat override too? This assertion checks only the hoisted package. In scratch copies of both locks, I added node_modules/framer-motion/node_modules/motion-utils at 12.23.27 while keeping the hoisted version at the declared override 12.23.28; calling the actual test function still passed. That leaves nested override drift outside the guard's coverage. Both committed locks currently contain only the correct copies, so this is not a current install failure.

For the existing exact, flat overrides, check every package key equal to node_modules/{name} or ending in /node_modules/{name}. Keep the root-map and direct-dependency checks. Acceptance: both committed pairs and JSON formatting changes should pass; a wrong nested override version should fail alongside the existing manifest, direct-version and hoisted-override negative cases.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test c76baa4

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM, no concerns found. I reviewed all six changed files and the connected build and verifier paths with three delegated reviewers.

The prior NOTE about stale nested overrides is fixed. My mutation probes reproduced the old guard accepting a stale nested copy and confirmed that the new guard rejects it for both stacks.

Validation

Probes ran in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:228a16b96df8f925220a7edbff2d7d22317c78fb, a successful default-branch CI image because this head has no container image. I added Node 22.20.0/npm 10.9.3 to the external review environment.

  • Twenty guard checks passed, covering valid formatting, root/direct-version drift, missing overrides and nested copies.
  • Nine shell-helper probes passed, including npm failure, malformed inputs, destination preservation and temporary-directory cleanup.
  • Clean npm installs with lifecycle scripts enabled passed for both stacks. Production builds, HTTP serving probes and verifier acceptance/outside-import rejection probes passed. The Vite sample also passed TypeScript checking.
  • Next base-versus-head probes passed for React rendering, Axios HTTP/JSON, lodash, mathjs and the sharp consumers. Next image optimization also passed with sharp 0.35.5.
  • Offline lock regeneration succeeded. npm 10.9.3 removed only libc metadata from 44 Next entries; Vite was unchanged. A second regeneration was byte-stable for both.

On the admitted head, I relied on green Lint check, both component-lock checks, all four core shards, all eight server shards, sandbox tests, combined coverage and the final test aggregates in CI run 46472388552. Core-shard logs explicitly show both new lock-test cases passed. Build Gym container, changed-server tests and session-routing end-to-end were skipped, not passed.

Limits

I did not build the complete UI Docker images, run real-browser visual checks or run model rollouts. The documented image rebuild and republish are still needed for rollout. All admitted checkouts are unchanged.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build Packaging, dependencies, containers, and releases risk:high Autobot PR risk: high support User questions, support, or maintenance requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants